package com.example.huaweiod.practice;

import java.util.Scanner;

public class hj1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        String s = in.nextLine();
        String[] strings = s.split(" ");
        System.out.println(strings[strings.length -1].length());
    }
}
